package com.ruoyi.system.mapper.basic;

import java.util.List;
import com.ruoyi.system.domain.db.basic.BasicWarehouses;
import com.ruoyi.system.domain.dto.WareDto;
import org.apache.ibatis.annotations.Param;

/**
 * 仓库管理Mapper接口
 * 
 * @author sen
 * @date 2023-07-25
 */
public interface BasicWarehousesMapper 
{
    /**
     * 查询仓库管理
     *
     * @param warehouseId 仓库管理主键
     * @return 仓库管理
     */
    public WareDto selectBasicWarehousesByWarehouseId(Long warehouseId);

    /**
     * 查询仓库管理列表
     * 
     * @param basicWarehouses 仓库管理
     * @return 仓库管理集合
     */
    public List<WareDto> selectWareDtoList(BasicWarehouses basicWarehouses);

    /**
     * 查询仓库管理列表
     *
     * @param basicWarehouses 仓库管理
     * @return 仓库管理集合
     */
    public List<BasicWarehouses> selectBasicWarehouses(BasicWarehouses basicWarehouses);

    /**
     * 新增仓库管理
     * 
     * @param basicWarehouses 仓库管理
     * @return 结果
     */
    public int insertBasicWarehouses(BasicWarehouses basicWarehouses);

    /**
     * 修改仓库管理
     * 
     * @param basicWarehouses 仓库管理
     * @return 结果
     */
    public int updateBasicWarehouses(BasicWarehouses basicWarehouses);

    /**
     * 删除仓库管理
     * 
     * @param warehouseId 仓库管理主键
     * @return 结果
     */
    public int deleteBasicWarehousesByWarehouseId(Long warehouseId);

    /**
     * 批量删除仓库管理
     * 
     * @param warehouseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBasicWarehousesByWarehouseIds(Long[] warehouseIds);

    BasicWarehouses selectWarehouseIdByDistrictAndTown(@Param("district") String departureDistrict,@Param("town") String departureTown);
}
